#include "MenuGame.h"
#include "Game.h"
#include "MyEvent.h"

MenuGame::MenuGame(void)
{
}


MenuGame::~MenuGame(void)
{
}
void MenuGame::createGui()
{
	mEnv = Game::mDevice->getGUIEnvironment();
	mSkin = mEnv->getSkin();
	mFont = mEnv->getFont("../DataGame/media/fonthaettenschweiler.bmp");
	if(mFont)
	{
		mSkin->setFont(mFont);
	}
	gui::IGUIContextMenu* menu = mEnv->addMenu();
	menu->addItem(L"Menu", -1, true, true);
	menu->addItem(L"Camera", -1, true, true);
	menu->addItem(L"Help", -1, true, true);
	menu->addItem(L"About module", -1, true, true);
	gui::IGUIContextMenu* subMenu;
	subMenu = menu->getSubMenu(0);
	subMenu->addItem(L"Create agent", GUI_ID_CREATE_AGENT);
	subMenu->addItem(L"Quit", GUI_ID_QUIT);
	subMenu = menu->getSubMenu(1);
	subMenu->addItem(L"Camera Maya", GUI_ID_CAMERA_MAYA );
	subMenu->addItem(L"Camera FPS", GUI_ID_CAMERA_FPS );
	subMenu = menu->getSubMenu(2);
	subMenu->addItem(L"Help", GUI_ID_HELP);
	subMenu = menu->getSubMenu(3);
	subMenu->addItem(L"About", GUI_ID_ABOUT);
	
	

}